﻿using JsonEditorTest.Properties;
using ProgramCat.FiddlerExtension.Core.JsonEditor;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace JsonEditorTest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //jsonView1.Json = Resources.json_;
            //jsonView1.OnAfterSelect += OnAfterSelect;
            
        }

        private void OnAfterSelect(JsonViewerTreeNode value)
        {
            MessageBox.Show(value.GetNodePath());
        }

        private void button2_Click(object sender, EventArgs e)
        {
            //jsonView1.ExpandAll();
        }

        private void button3_Click(object sender, EventArgs e)
        {
           // jsonView1.CollapseAll();
        }
    }
}
